export enum WinEnum {
  SETT_ITLE = 'set-title'
}

export enum DialogEnum {
  OPEN_FILE = 'dialg:openFile'
}

export enum CustomEnum {
  OPEN = 'custom:open',
  REPLY = 'custom:reply'
}

export enum CounterEnum {
  UPDATE = 'update-counter'
}

/**
 * -1 检查更新失败
 * 0 正在检查更新
 * 1 检测到新版本，准备下载
 * 2 未检测到新版本
 * 3 下载中
 * 4 下载完成
 **/
export enum UpdateCode {
  ERROR = -1,
  CHECKING = 0,
  NEW = 1,
  OLD = 2,
  DOWNLOADING = 3,
  DOWNLOADED = 4
}

export enum UpdateEnum {
  UPDATE = 'app:update',
  QUITANDINSTALL = 'app:quitAndInstall',
  DOWNLOAD = 'app:download',
  MSG = 'update:msg'
}

export const ElectronAPI = 'electronAPI'
